<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="{:U("index")}" method="post">
        <input type="hidden" name="pageSize" value="${pageSize}">
        <input type="hidden" name="pageCurrent" value="${pageCurrent}">
        <input type="hidden" name="orderField" value="${orderField}">
        <input type="hidden" name="orderDirection" value="${orderDirection}">
        <div class="bjui-searchBar">
            <a class="btn btn-orange" href="{:U(add)}" data-toggle="navtab" data-id="addArticle"  data-icon="paste">添加文章</a>
            <button type="button" class="btn-default">搜索</button>&nbsp;
            <input type="text" id="customNo" value="{$searchname|default=""}" name="keyword" class="form-control" size="30">&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a>
            <div class="pull-right">
                <a href="{:U(del)}" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？" data-idname="ids" data-group="ids" class="btn btn-red">删除选中</a>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent">
     <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="false">
        <thead>
            <tr>
                <th align="center" width="50">ID</th>
                <th align="center">标题</th>
                <th align="center" width="70">栏目</th>
                <th align="center"width="70">更新时间</th>
                <th align="center"width="50">点击</th>
                <th align="center" width="26"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
                <th align="center" width="200">操作</th>
            </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo">
            <tr data-id="{$vo.id}">
                <td align="center">{$vo.id}</td>
                <td>{$vo.title}</td>
                <td align="center">{$vo.category_name}</td>
                <td align="center">{$vo.addtime}</td>
                <td align="center">{$vo.click}</td>
                <td align="center"><input type="checkbox" name="ids" data-toggle="icheck" value="{$vo.id}"></td>
                <td align="center">
                <a href="__ROOT__/Article/index/id/{$vo.id}.html" target="_blank"class="btn btn-green" >预览</a>
                    <a href="{:U('edit',array('id'=>$vo['id']))}" class="btn btn-green" data-toggle="navtab" data-id="form"  data-title="编辑文章--{$vo.title}">编辑</a>
                    <a href="{:U('del',array('ids'=>$vo['id']))}" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">删</a>
                </td>
            </tr>
        </volist>
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>
        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="{$pageSize}">{$pageSize}</option>
                <option value="10">10</option>
                <option value="20">20</option>
                <option value="30">30</option>
                <option value="60">60</option>
                <option value="100">100</option>
            </select>
        </div>
        <span>共{$total}条</span>
    </div>
    <div class="pagination-box" data-toggle="pagination" data-total="{$total}" data-page-size="{$pageSize}" data-page-current="{$pageCurrent}"></div>
</div>